package com.franklin.java.completion.map;

import com.franklin.java.api.psi.data.PsiData;
import com.franklin.java.entity.sql.ColumnInfo;
import com.intellij.psi.PsiElement;

/**
 * @author Franklin
 * @since 2021/8/6 12:06
 */
public class MapData {

    private PsiData key;
    private PsiData value;

    private PsiElement targetMap;
    private String description = "Franklin Map Data Helper";

    private ColumnInfo columnInfo;

    public MapData(PsiData key, PsiData value, PsiElement targetMap) {
        this.key = key;
        this.value = value;
        this.targetMap = targetMap;
    }

    public MapData() {
    }

    public ColumnInfo getColumnInfo() {
        return columnInfo;
    }

    public void setColumnInfo(ColumnInfo columnInfo) {
        this.columnInfo = columnInfo;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public PsiElement getTargetMap() {
        return targetMap;
    }

    public PsiData getKey() {
        return key;
    }

    public void setKey(PsiData key) {
        this.key = key;
    }

    public PsiData getValue() {
        return value;
    }

    public void setValue(PsiData value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "MapData<" +
            key +
            "," + value +
            '>';
    }
}
